/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmPhieuNhap.java
 *
 * Created on Aug 22, 2012, 3:06:55 PM
 */
package gui;

import dao.ChiTietHoaDonDAO;
import dao.HoaDonDAO;
import dao.KhachHangDAO;
import dao.PhieuThuDAO;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.TimeZone;
import java.util.Vector;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;
import javax.swing.ListModel;
import javax.swing.event.ListDataListener;
import javax.swing.table.DefaultTableModel;
import pojo.Chitiethoadon;
import pojo.Hoadon;
import pojo.Khachhang;
import pojo.Nhanvien;
import pojo.Phieuthu;

/**
 *
 * @author dtth
 */
public class frmPhieuThu extends javax.swing.JFrame {

    private List<Hoadon> _lHoaDon;
    private List<Khachhang> _lKhachHang;
    private Nhanvien _nhanvien;
    private int _index;

    /**
     * Creates new form frmPhieuNhap
     */
    public frmPhieuThu() {
        initComponents();
        this._lHoaDon = null;
        this._lKhachHang = null;
        this._nhanvien = new Nhanvien();
        this._nhanvien.setManhanvien(1);
        this._nhanvien.setTennhanvien("Ngoc Cam");
        fillJCbxTenKhachHang();

        this._index = 0;

    }

    /**
     * Creates new form frmPhieuNhap
     */
    public frmPhieuThu(Nhanvien nhanvien) {
        initComponents();
        this._lHoaDon = null;
        this._lKhachHang = null;
        this._nhanvien = nhanvien;
        fillJCbxTenKhachHang();

    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jlblNgayLap = new javax.swing.JLabel();
        jcbxTenKhachHang = new javax.swing.JComboBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtbMatHang = new javax.swing.JTable();
        jbtnDong = new javax.swing.JButton();
        jbtnSuaHoaDon = new javax.swing.JButton();
        jbtnLapPhieuThu = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jlsHoaDon = new javax.swing.JList();
        jLabel5 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jlblNhanVien = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel1.setText("LẬP PHIẾU THU");

        jLabel3.setText("Tên Khách Hàng");

        jLabel6.setText("Ngày Lập ");

        jlblNgayLap.setText("27/1/2012");

        jcbxTenKhachHang.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jcbxTenKhachHangMouseClicked(evt);
            }
        });
        jcbxTenKhachHang.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jcbxTenKhachHangItemStateChanged(evt);
            }
        });
        jcbxTenKhachHang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcbxTenKhachHangActionPerformed(evt);
            }
        });
        jcbxTenKhachHang.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jcbxTenKhachHangKeyPressed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3)
                    .addComponent(jLabel6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlblNgayLap)
                    .addComponent(jcbxTenKhachHang, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jcbxTenKhachHang, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jlblNgayLap))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jtbMatHang.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        jScrollPane1.setViewportView(jtbMatHang);

        jbtnDong.setText("Đóng");
        jbtnDong.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnDongActionPerformed(evt);
            }
        });

        jbtnSuaHoaDon.setText("Sửa Hóa Đơn");
        jbtnSuaHoaDon.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnSuaHoaDonActionPerformed(evt);
            }
        });

        jbtnLapPhieuThu.setText("Lập Phiếu Thu");
        jbtnLapPhieuThu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnLapPhieuThuActionPerformed(evt);
            }
        });

        jLabel4.setText("Danh sách các mặt hàng của hóa đơn cần lập phiếu thu");

        jlsHoaDon.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jlsHoaDonMouseClicked(evt);
            }
        });
        jlsHoaDon.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jlsHoaDonKeyPressed(evt);
            }
        });
        jScrollPane2.setViewportView(jlsHoaDon);

        jLabel5.setText("Danh Sách Hóa Đơn");

        jLabel7.setText("Nhân Viên: ");

        jlblNhanVien.setText("Nguyễn Phước Duy");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(50, 50, 50)
                                .addComponent(jLabel4))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jbtnSuaHoaDon)
                                        .addGap(18, 18, 18)
                                        .addComponent(jbtnLapPhieuThu)
                                        .addGap(18, 18, 18)
                                        .addComponent(jbtnDong, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 521, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jlblNhanVien))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(24, 24, 24)
                        .addComponent(jLabel5))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(165, 165, 165)
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(311, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addGap(310, 310, 310))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(jlblNhanVien))
                        .addGap(27, 27, 27))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(19, 19, 19)
                .addComponent(jLabel5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 196, Short.MAX_VALUE))
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jbtnDong)
                    .addComponent(jbtnLapPhieuThu)
                    .addComponent(jbtnSuaHoaDon))
                .addGap(30, 30, 30))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jbtnSuaHoaDonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnSuaHoaDonActionPerformed
// TODO add your handling code here:
    frmQuanLyHoaDon frm = new frmQuanLyHoaDon();
    frm.setVisible(true);
}//GEN-LAST:event_jbtnSuaHoaDonActionPerformed

private void jbtnLapPhieuThuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnLapPhieuThuActionPerformed
// TODO add your handling code here:
    boolean kq = false;
    Phieuthu phieuthu = new Phieuthu();
    phieuthu.setTenphieuthu(this.jcbxTenKhachHang.getSelectedItem().toString());
    Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
    phieuthu.setNgaylap(calendar.getTime());


    //chua x0ng
//    phieuthu.setKhachhang(this._lKhachHang.get(this.jcbxTenKhachHang.getSelectedIndex()));

    phieuthu.setKhachhang((Khachhang) this.jcbxTenKhachHang.getSelectedItem());
    phieuthu.setNhanvien(this._nhanvien);

    kq = PhieuThuDAO.themPhieuThu(phieuthu);
    if (kq == true) {
        kq = false;
        for (int i = 0; i < this._lHoaDon.size(); i++) {
            this._lHoaDon.get(i).setTrangthai(true);
            kq = HoaDonDAO.capnhatThongTinHoaDon(this._lHoaDon.get(i));
        }
        if (kq) {
            JOptionPane.showMessageDialog(this, "Thành công !", "Thông báo", JOptionPane.INFORMATION_MESSAGE);
        } else {
            JOptionPane.showMessageDialog(this, "Không được !", "Thông báo", JOptionPane.WARNING_MESSAGE);
        }
    }
    DefaultListModel listModel = new DefaultListModel();
    this.jlsHoaDon.setModel(listModel);
    DefaultTableModel tableModel = new DefaultTableModel();
    tableModel.addColumn("Tên Sản Phẩm");
    tableModel.addColumn("Số Lượng");
    tableModel.addColumn("Đơn Giá");
    tableModel.addColumn("Thành Tiền");
    this.jtbMatHang.setModel(tableModel);

    fillJCbxTenKhachHang();

    //CON THIEU TINH NANG TRU SO LUONG SAN PHAMR TON KHO 
    //SlTonKho -= SlBan

}//GEN-LAST:event_jbtnLapPhieuThuActionPerformed

private void jbtnDongActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnDongActionPerformed
// TODO add your handling code here:
    this.setVisible(false);
}//GEN-LAST:event_jbtnDongActionPerformed

private void jlsHoaDonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jlsHoaDonMouseClicked
// TODO add your handling code here:
    int index = this.jlsHoaDon.getSelectedIndex();
    Hoadon hoadon = this._lHoaDon.get(index);

    List<Chitiethoadon> listCTHoaDon = ChiTietHoaDonDAO.layDanhSachChiTietHoaDon(hoadon);
    fillJTable(listCTHoaDon);
}//GEN-LAST:event_jlsHoaDonMouseClicked

private void jlsHoaDonKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jlsHoaDonKeyPressed
// TODO add your handling code here:
    int index = this.jlsHoaDon.getSelectedIndex();
    int key = evt.getKeyCode();
    if (key == 40) {//nhan nut xuong
        index++;
    }
    if (key == 38) {//nhan nutlen
        index--;
    }
    Hoadon hoadon = this._lHoaDon.get(index);
    List<Chitiethoadon> listCTHoaDon = ChiTietHoaDonDAO.layDanhSachChiTietHoaDon(hoadon);
    fillJTable(listCTHoaDon);
}//GEN-LAST:event_jlsHoaDonKeyPressed

private void jcbxTenKhachHangKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jcbxTenKhachHangKeyPressed
// TODO add your handling code here:
}//GEN-LAST:event_jcbxTenKhachHangKeyPressed

private void jcbxTenKhachHangMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jcbxTenKhachHangMouseClicked
// TODO add your handling code here:
}//GEN-LAST:event_jcbxTenKhachHangMouseClicked

private void jcbxTenKhachHangItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jcbxTenKhachHangItemStateChanged
// TODO add your handling code here:
}//GEN-LAST:event_jcbxTenKhachHangItemStateChanged

private void jcbxTenKhachHangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbxTenKhachHangActionPerformed
// TODO add your handling code here:
    DefaultTableModel tableModel = new DefaultTableModel();
    tableModel.addColumn("Tên Sản Phẩm");
    tableModel.addColumn("Số Lượng");
    tableModel.addColumn("Đơn Giá");
    tableModel.addColumn("Thành Tiền");
    this.jtbMatHang.setModel(tableModel);

    int index = this.jcbxTenKhachHang.getSelectedIndex();

    //this._lHoaDon = HoaDonDAO.layDanhSachHoaDon(this._lKhachHang.get(index).getMakhachhang());
    Khachhang kh = (Khachhang) this.jcbxTenKhachHang.getSelectedItem();
    this._lHoaDon = null;
    this._lHoaDon = HoaDonDAO.layDanhSachHoaDon(kh.getMakhachhang());
    if (this._lHoaDon.size() > 0) {
        fillJList();
        this.jlsHoaDon.setSelectedIndex(0);

        //lay du lieu vao jTableSanPham
        if (this._lHoaDon.get(0).getTrangthai() == false) {
            Hoadon hoadon = this._lHoaDon.get(0);
            List<Chitiethoadon> listCTHoaDon = ChiTietHoaDonDAO.layDanhSachChiTietHoaDon(hoadon);
            fillJTable(listCTHoaDon);
        }
    }
    else{
        fillJList();
    }
}//GEN-LAST:event_jcbxTenKhachHangActionPerformed

    private void fillJCbxTenKhachHang() {
        DefaultComboBoxModel cbxModel = new DefaultComboBoxModel();
        this.jcbxTenKhachHang.setModel(cbxModel);

        this._lKhachHang = KhachHangDAO.layDanhSachKhachHang();
        for (int i = 0; i < _lKhachHang.size(); i++) {
            List<Hoadon> lhoaDon = HoaDonDAO.layDanhSachHoaDon(this._lKhachHang.get(i).getMakhachhang());
            boolean flag = false;
            for (int j = 0; j < lhoaDon.size(); j++) {
                if (lhoaDon.get(j).getTrangthai() == true) {
                    flag = true;
                }
            }

            if (!flag) {
//                cbxModel.addElement(_lKhachHang.get(i).getTenkhachhang());
                this.jcbxTenKhachHang.addItem(this._lKhachHang.get(i));
            }

        }
        Khachhang kh = (Khachhang) this.jcbxTenKhachHang.getSelectedItem();
        if (kh != null) {
            this._lHoaDon = HoaDonDAO.layDanhSachHoaDon(kh.getMakhachhang());
            if (this._lHoaDon != null) {
                fillJList();
            }
        }
    }

    private void fillJList() {
        DefaultListModel listModel = new DefaultListModel();
        boolean flag = false;
        for (int i = 0; i < this._lHoaDon.size(); i++) {
            if (this._lHoaDon.get(i).getTrangthai() == false) {
                listModel.addElement(this._lHoaDon.get(i).getTenhoadon());
                flag = true;
            }
        }
        this.jlsHoaDon.setModel(listModel);
        if (flag) {
            //lay du lieu vao jTableSanPham
            if (this._lHoaDon.get(0).getTrangthai() == false) {
                Hoadon hoadon = this._lHoaDon.get(0);
                List<Chitiethoadon> listCTHoaDon = ChiTietHoaDonDAO.layDanhSachChiTietHoaDon(hoadon);
                fillJTable(listCTHoaDon);
            }
        }
    }

    private void fillJTable(List<Chitiethoadon> lcthd) {
        DefaultTableModel tableModel = new DefaultTableModel();
        tableModel.addColumn("Tên Sản Phẩm");
        tableModel.addColumn("Số Lượng");
        tableModel.addColumn("Đơn Giá");
        tableModel.addColumn("Thành Tiền");
        this.jtbMatHang.setModel(tableModel);

        if (lcthd.size() > 0) {
            for (int i = 0; i < lcthd.size(); i++) {
                Vector vt = new Vector();
                vt.add(lcthd.get(i).getSanpham().getTensanpham());
                vt.add(lcthd.get(i).getSoluong());
                vt.add(lcthd.get(i).getDongia());
                vt.add(lcthd.get(i).getHoadon().getThanhtien());//chu y cot thanh tien

                tableModel.addRow(vt);
            }
        }
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(frmPhieuThu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(frmPhieuThu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(frmPhieuThu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(frmPhieuThu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new frmPhieuThu().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JButton jbtnDong;
    private javax.swing.JButton jbtnLapPhieuThu;
    private javax.swing.JButton jbtnSuaHoaDon;
    private javax.swing.JComboBox jcbxTenKhachHang;
    private javax.swing.JLabel jlblNgayLap;
    private javax.swing.JLabel jlblNhanVien;
    private javax.swing.JList jlsHoaDon;
    private javax.swing.JTable jtbMatHang;
    // End of variables declaration//GEN-END:variables
}
